package mysql

import (
	"bluebell/models"
	"fmt"
)

func GenConditionList(id int) (conditions []*models.Condition) {
	sqlStr := "SELECT * FROM conditions WHERE city_id=?"
	if err := db.Select(&conditions, sqlStr, id); err != nil {
		fmt.Println(err)
		return
	}
	return
}
